import {
	http
} from '@/service/index.js'
import store from '@/store/index.js'
import configs from '@/config/index.js'

// 查询轮播图
export const carouselList = async (data) => {
	return await http.get(`/system/carousel/list`, data)
}


export const teamListPage = async (data) => {
	return await http.get(`/index/earnings/teamListPage`, data)
}

export const teamRebateRecordListPage = async (data) => {
	return await http.get(`/index/earnings/teamRebateRecordListPage`, data)
}

export const earningsDetail = async (data) => {
	return await http.get(`/index/earnings/detail`, data)
}

export const getType = async (data) => {
	return await http.get(`/system/explain/getType`, data)
}


export const queryGroupOrderAwardRecord = async (data, config = {}) => {
	return await http.get(`/index/order/queryGroupOrderAwardRecord`, data, config)
}

export const queryGroupOrderAward = async (data, config = {}) => {
	return await http.get(`/index/order/queryGroupOrderAward`, data, config)
}

export const settingGroupAddress = async (data, config = {}) => {
	return await http.post(`/index/order/settingGroupAddress`, data, config)
}
